home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / src / haeberli / include / bitmap.h < prev    next >
C/C++ Source or Header  |  1994-08-01  |  2KB  |  57 lines

  1. /*
  2.  * Copyright 1991, 1992, 1993, 1994, Silicon Graphics, Inc.
  3.  * All Rights Reserved.
  4.  *
  5.  * This is UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon Graphics, Inc.;
  6.  * the contents of this file may not be disclosed to third parties, copied or
  7.  * duplicated in any form, in whole or in part, without the prior written
  8.  * permission of Silicon Graphics, Inc.
  9.  *
  10.  * RESTRICTED RIGHTS LEGEND:
  11.  * Use, duplication or disclosure by the Government is subject to restrictions
  12.  * as set forth in subdivision (c)(1)(ii) of the Rights in Technical Data
  13.  * and Computer Software clause at DFARS 252.227-7013, and/or in similar or
  14.  * successor clauses in the FAR, DOD or NASA FAR Supplement. Unpublished -
  15.  * rights reserved under the Copyright Laws of the United States.
  16.  */
  17. #ifndef BITMAPDEF
  18. #define BITMAPDEF
  19.  
  20. typedef struct Bitmap {
  21.        short *base;         /* pointer to first word */
  22.     short xsize, ysize;    /* dimensions of the bitmap */
  23.     short xorig, yorig;    /* origin - used for cursors */
  24.     short xmove, ymove;    /* move - used by characters */
  25.     short sper;        /* shorts per row */
  26. } Bitmap;
  27.  
  28. typedef struct Font {
  29.     short descender;
  30.     short width;
  31.     short height;
  32.     short nchars;
  33.     short bitsdeep;
  34.     Bitmap **chars;
  35. } Font;
  36.  
  37. Bitmap *bmnew();
  38. Bitmap *bmread();
  39. Bitmap *bmfromfile();
  40. Bitmap *bmclone();
  41. Bitmap *bmmagnify();
  42. Bitmap *bmminimize();
  43.  
  44. Font *fntnew();
  45. Font *fntread();
  46. Font *fntfromfile();
  47. Font *fntclone();
  48. Font *fntmagnify();
  49. Font *fntminimize();
  50. Font *fntgl2cvt();
  51.  
  52. #define BM_SET    1
  53. #define BM_CLR    2
  54. #define BM_XOR    3
  55.  
  56. #endif
  57.